package com.ruoyi.fuw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fuw.mapper.FuwServiceMapper;
import com.ruoyi.fuw.domain.FuwService;
import com.ruoyi.fuw.service.IFuwServiceService;

/**
 * 医疗服务Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-03
 */
@Service
public class FuwServiceServiceImpl implements IFuwServiceService 
{
    @Autowired
    private FuwServiceMapper fuwServiceMapper;

    /**
     * 查询医疗服务
     * 
     * @param serviceId 医疗服务主键
     * @return 医疗服务
     */
    @Override
    public FuwService selectFuwServiceByServiceId(String serviceId)
    {
        return fuwServiceMapper.selectFuwServiceByServiceId(serviceId);
    }

    /**
     * 查询医疗服务列表
     * 
     * @param fuwService 医疗服务
     * @return 医疗服务
     */
    @Override
    public List<FuwService> selectFuwServiceList(FuwService fuwService)
    {
        return fuwServiceMapper.selectFuwServiceList(fuwService);
    }

    /**
     * 新增医疗服务
     * 
     * @param fuwService 医疗服务
     * @return 结果
     */
    @Override
    public int insertFuwService(FuwService fuwService)
    {
        return fuwServiceMapper.insertFuwService(fuwService);
    }

    /**
     * 修改医疗服务
     * 
     * @param fuwService 医疗服务
     * @return 结果
     */
    @Override
    public int updateFuwService(FuwService fuwService)
    {
        return fuwServiceMapper.updateFuwService(fuwService);
    }

    /**
     * 批量删除医疗服务
     * 
     * @param serviceIds 需要删除的医疗服务主键
     * @return 结果
     */
    @Override
    public int deleteFuwServiceByServiceIds(String[] serviceIds)
    {
        return fuwServiceMapper.deleteFuwServiceByServiceIds(serviceIds);
    }

    /**
     * 删除医疗服务信息
     * 
     * @param serviceId 医疗服务主键
     * @return 结果
     */
    @Override
    public int deleteFuwServiceByServiceId(String serviceId)
    {
        return fuwServiceMapper.deleteFuwServiceByServiceId(serviceId);
    }
}
